﻿
using System;
using System.Diagnostics;


internal class Debugger
{
    [DebuggerStepThrough]
    [Conditional("UseAssert")]
    static public void Assert(bool condition, string msg = "")
    {
        if (!condition)
        {
            throw new Exception(msg);
        }
    }
    [DebuggerStepThrough]
    [Conditional("UseAssert")]
    static public void Assert(string msg)
    {
        throw new Exception(msg);
    }

    [DebuggerStepThrough]
    [Conditional("UseAssert")]
    static public void Check(bool condition, string msg = "")
    {
        if (!condition)
        {
            throw new Exception(msg);
        }
    }
    [DebuggerStepThrough]
    [Conditional("UseAssert")]
    static public void Check(string msg)
    {
        throw new Exception(msg);
    }
}
